﻿using System;
using System.Text.RegularExpressions;

namespace Ex6EmailValidator
{
    class EmailValidator
    {
        static void Main()
        {
            string input = "Vseki e-mail trqbva da zapo4va sas ime naprimer qr3ca"+
                "sledva @ host . domein. Domeinite sa po 2-3-4 dyljina Moq e-mail e qr3ca@abv.bg";

            string pattern = @"\b\w+@(\w+\.)+\w{2,4}\b";
            Console.WriteLine(Regex.Match(input, pattern));
        }
    }
}
